#include<bits/stdc++.h>

using namespace std;

//普通传值的参数无法在子函数中修改main中的内容
int f(int x) {//pass by value
    cout << "Inside function f:&x" << (&x) << endl;
    x++;
}

int main() {
    int x = 3;
    cout << "Inside function main:&x" << (&x) << endl;
    f(x);
    cout << x << endl;
    return 0;
}
